<template>
    <div>
      <div class="top_image">
        <img src="http://rzico.oss-cn-shenzhen.aliyuncs.com/portal/joinUs.png" style="width: 100%;height: 100%;display: block">
      </div>
      <div class="search_content">
        <div class="search_input_content">
          <div class="search_input_head_content">
            <span class="search_input_title">职业筛选</span>
            <div>
              <span class="search_input_share">分享到</span>
              <i class="el-icon-arrow-down search_input_share"></i>
            </div>
          </div>
          <div class="search_input">
            <el-input v-model="search" placeholder="请输入内容"  class="input_width"></el-input>
            <div class="button_click">搜索职位</div>
          </div>
          <div class="select_content">
            <el-select v-model="value" placeholder="请选择" class="select_item"  >
              <el-option
                v-for="item in options"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
            <el-select v-model="value" placeholder="请选择" class="select_item"  >
              <el-option
                v-for="item in options"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
            <el-select v-model="value" placeholder="请选择" class="select_item" >
              <el-option
                v-for="item in options"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </div>
        <div class="search_input_content_job">
            <div class="job_item" v-for="item in jobs">
              <div class="job_name_content">
                <div class="urgent_text">急</div>
                <span class="job_name_text">{{item.name}}</span>
              </div>
              <div class="type_content">
                  <div class="type_title_text">全职</div>
                  <span class="subTitle_text">{{item.subTitle}}</span>
              </div>
              <div class="city_content">
                <span class="subTitle_text" style="color: black">{{item.city}}</span>
                <span class="subTitle_text">发布时间：{{item.date}}</span>
              </div>
            </div>
        </div>

          <pagination
            class="pagination"
            v-show="total>0"
            :total="total"
            :page.sync="pageNum"
            :limit.sync="pageSize"
            @pagination="getList"
          />

      </div>

    </div>
</template>

<script>
  import Pagination from '@/components/Pagination'
  import Distpicker from '@/components/Distpicker/Distpicker'
  export default {
    name: 'recruit',
    data(){
      return{
        total:0,
        pageNum:1,
        pageSize:3,
        search:'',
        options:[],
        jobs:[{
          name:'大数据平台架构师',
          type:'全职',
          subTitle:'技术类',
          date:'2020-10-10',
          city:'浙江·杭州市'
        },
          {
            name:'大数据平台架构师',
            type:'全职',
            subTitle:'技术类',
            date:'2020-10-10',
            city:'浙江·杭州市'
          },{
            name:'大数据平台架构师',
            type:'全职',
            subTitle:'技术类',
            date:'2020-10-10',
            city:'浙江·杭州市'
          },{
            name:'大数据平台架构师',
            type:'全职',
            subTitle:'技术类',
            date:'2020-10-10',
            city:'浙江·杭州市'
          },{
            name:'大数据平台架构师',
            type:'全职',
            subTitle:'技术类',
            date:'2020-10-10',
            city:'浙江·杭州市'
          }]
      }
    },
    methods:{
      getList(){

      },
    },
    created() {
      this.total=this.jobs.length
    },
    components: { Pagination },
  }
</script>

<style scoped>
  @media (max-width: 750px){
    /deep/.el-input__inner{
      font-size: 12px;
    }
    .pagination{
      width: 300px;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    /deep/.el-pagination span{
      display: none;
    }
    .search_content{
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      margin-bottom: 20px;
      width: 100%;
    }
    .search_input_content{
      width: 300px;
      padding: 10px;
      margin-bottom: 10px;
      border: 2px solid rgba(0,0,0,0.1);
      border-radius: 5px;
    }
    .search_input_content_job{
      width: 300px;
      padding: 20px;
      height: 250px;
      overflow-y: auto;
      margin-bottom: 10px;
      border: 3px solid rgba(0,0,0,0.1);
      border-radius: 5px;
    }
    .search_input_head_content{
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
    }
    .search_input_title{
      font-size: 12px;
    }
    .search_input_share{
      font-size: 12px;
      color: rgba(0,0,0,0.3);
    }
    .search_input{
      width: 280px;
      height: 20px;
      display: flex;
      margin-top: 30px;
    }
    .input_width {
      width: 240px;
      border-bottom-left-radius: 4px !important;
      border-bottom-right-radius: 0px !important;
      border-top-left-radius: 4px !important;
      border-top-right-radius: 0px !important;
    }

    .button_click{
      display: flex;
      color: white;
      background-color: #409EFF;
      justify-content: center;
      align-items: center;
      width: 80px;
      height: 36px;
      font-size: 13px;

    }
    .select_content{
      display: flex;
      margin-top: 30px;

    }
    .select_item{
      width: 100px;
      font-size: 12px;
      margin-right: 10px
    }
    .job_item{
      border-bottom: 1px solid rgba(0,0,0,0.2);
      padding-top: 20px;
      padding-bottom: 20px;
    }
    .job_name_content{
      display: flex;

    }
    .urgent_text{
      display: flex;
      justify-content: center;
      align-items: center;
      background-color: #ff6b6b;
      color: white;
      padding: 5px;
      font-size: 8px;
    }
    .job_name_text{
      font-size: 16px;
      font-weight: 500;
      margin-left: 5px;
    }
    .type_content{
      display: flex;
      margin-top: 10px;
    }
    .type_title_text{
      font-size: 10px;
      margin-right: 10px;
      color: rgba(0,0,0,0.3);
      padding-right:10px;
      border-right: 1px solid rgba(0,0,0,0.1);
    }
    .subTitle_text{
      font-size: 10px;
      color: rgba(0,0,0,0.3);
    }
    .city_content{
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 10px;
    }
  }
  @media (min-width: 750px){
    .search_content{
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      margin-bottom: 20px;
      width: 100%;
    }
    .search_input_content{
      width: 600px;
      padding: 20px;
      margin-bottom: 10px;
      border: 3px solid rgba(0,0,0,0.1);
      border-radius: 5px;
    }
    .search_input_content_job{
      width: 600px;
      padding: 20px;
      height: 500px;
      overflow-y: auto;
      margin-bottom: 10px;
      border: 3px solid rgba(0,0,0,0.1);
      border-radius: 5px;
    }
    .search_input_head_content{
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
    }
    .search_input_title{
      font-size: 16px;
    }
    .search_input_share{
      font-size: 12px;
      color: rgba(0,0,0,0.3);
    }
    .search_input{
      width: 560px;
      height: 40px;
      display: flex;
      margin-top: 30px;
    }
    .input_width {
      width: 480px;
      border-bottom-left-radius: 4px !important;
      border-bottom-right-radius: 0px !important;
      border-top-left-radius: 4px !important;
      border-top-right-radius: 0px !important;
    }

    .button_click{
      display: flex;
      color: white;
      background-color: #409EFF;
      justify-content: center;
      align-items: center;
      width: 80px;
      height: 36px;
      font-size: 13px;

    }
    .select_content{
      display: flex;
      margin-top: 30px;

    }
    .job_item{
      border-bottom: 1px solid rgba(0,0,0,0.2);
      padding-top: 20px;
      padding-bottom: 20px;
    }
    .job_name_content{
      display: flex;

    }
    .urgent_text{
      display: flex;
      justify-content: center;
      align-items: center;
      background-color: #ff6b6b;
      color: white;
      padding: 5px;
      font-size: 8px;
    }
    .job_name_text{
      font-size: 16px;
      font-weight: 500;
      margin-left: 5px;
    }
    .type_content{
      display: flex;
      margin-top: 10px;
    }
    .type_title_text{
      font-size: 10px;
      margin-right: 10px;
      color: rgba(0,0,0,0.3);
      padding-right:10px;
      border-right: 1px solid rgba(0,0,0,0.1);
    }
    .subTitle_text{
      font-size: 10px;
      color: rgba(0,0,0,0.3);
    }
    .city_content{
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 10px;
    }
  }


</style>
